package com.company.cloud.acct.modules.base.entity;

import java.math.BigDecimal;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;

import java.time.LocalDateTime;

import com.company.cloud.common.bean.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import io.swagger.annotations.ApiModelProperty;

/**
 * <p>
 * 4_账户操作日志表
 * </p>
 *
 * @author anros
 * @since 2020-09-15
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("acct_account_op_log_info")
public class AccountOpLogInfo extends BaseEntity {

    private static final long serialVersionUID = 1L;

    /**
     * ID
     */
    @ApiModelProperty(value = "ID")
    @TableId(value = "ID", type = IdType.AUTO)
    private Integer id;

    /**
     * 公司编号
     */
    @ApiModelProperty(value = "公司编号")
    private String companyNo;

    /**
     * 用户ID
     */
    @ApiModelProperty(value = "用户ID")
    private Integer userId;

    /**
     * 账户分类
     */
    @ApiModelProperty(value = "账户分类")
    private String type;

    /**
     * 操作分类
     */
    @ApiModelProperty(value = "操作分类")
    private String opType;

    /**
     * 账单操作金额
     */
    @ApiModelProperty(value = "账单操作金额")
    private BigDecimal fundOp;

    /**
     * 账单扣税金额
     */
    @ApiModelProperty(value = "账单扣税金额")
    private BigDecimal fundTax;

    /**
     * 账单实际金额
     */
    @ApiModelProperty(value = "账单实际金额")
    private BigDecimal fundReal;

    /**
     * 操作前累计金额
     */
    @ApiModelProperty(value = "操作前累计金额")
    private BigDecimal preTotalFund;

    /**
     * 操作后累计金额
     */
    @ApiModelProperty(value = "操作后累计金额")
    private BigDecimal postTotalFund;

    /**
     * 操作前账户金额
     */
    @ApiModelProperty(value = "操作前账户金额")
    private BigDecimal preFund;

    /**
     * 操作后账户金额
     */
    @ApiModelProperty(value = "操作后账户金额")
    private BigDecimal postFund;

    /**
     * 操作前冻结金额
     */
    @ApiModelProperty(value = "操作前冻结金额")
    private BigDecimal preFreezeFund;

    /**
     * 操作后冻结金额
     */
    @ApiModelProperty(value = "操作后冻结金额")
    private BigDecimal postFreezeFund;

    /**
     * 操作前不可用金额
     */
    @ApiModelProperty(value = "操作前不可用金额")
    private BigDecimal preNotFund;

    /**
     * 操作后不可用金额
     */
    @ApiModelProperty(value = "操作后不可用金额")
    private BigDecimal postNotFund;

    /**
     * 关联业务流水分类
     */
    @ApiModelProperty(value = "关联业务流水分类")
    private String relObjType;

    /**
     * 关联业务流水号
     */
    @ApiModelProperty(value = "关联业务流水号")
    private String relObjNo;

    /**
     * 备注
     */
    @ApiModelProperty(value = "备注")
    private String memo;

    /**
     * 创建人
     */
    @ApiModelProperty(value = "创建人")
    private Integer cman;

    /**
     * 创建时间
     */
    @ApiModelProperty(value = "创建时间")
    private LocalDateTime cdt;

    /**
     * 创建人IP
     */
    @ApiModelProperty(value = "创建人IP")
    private String cip;


}
